<?php
    //More functions to be added.[rudolp]
    //PHP formatter : http://beta.phpformatter.com/
    header('Content-Type: text/html; charset=ISO-8859-15');
    define('CP_DIR', dirname(__FILE__) . "/");
    define('CP_LIB', 'lib/');
    define('CP_MOD', 'module/');
    define('CP_BAS', 'base/');
    define('CP_CON', 'conf/');
    include CP_CON . 'Config.php';
    include CP_CON . 'User.php';
    require_once CP_LIB . 'Connection.php';
    require_once CP_LIB . 'Login.php';
    require_once CP_LIB . 'ControlPanel.php';
    include CP_LIB . 'Variable.php';
	Config::setSettings();
    //  Browser check
    /*$ua=getBrowser();
    if ($ua['name'] == 'Internet Explorer') { 
    $controlpanel->error = $ua['name'];
    $controlpanel->render2(CP_BAS . 'error/browser.php');
    return;
    }*/
    define('__ACCESS__', 1);
    date_default_timezone_set(Config::$timeZone);
	$controlpanel->render();
?>